<?php if(isset($message)) { ?>
	<div class="message">
		<?php echo $message; ?>
	</div>
<?php } ?>

<?php if(isset($form)) { ?>
	<div class="form">
		<?php echo CHtml::beginForm(); ?>
		
			<p class="note">
				<?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?>
			</p>
			
			<?php echo CHtml::errorSummary($form); ?>
			
			<?php echo CHtml::activeHiddenField($form, 'email'); ?>
			<?php echo CHtml::activeHiddenField($form, 'secret'); ?>
			
			<div class="row">
				<?php echo CHtml::activePasswordField($form, 'password'); ?>
				<?php echo CHtml::activeLabelEx($form, 'password'); ?>
			</div>
			
			<div class="row">
				<?php echo CHtml::activePasswordField($form, 'verifyPassword'); ?>
				<?php echo CHtml::activeLabelEx($form, 'verifyPassword'); ?>
			</div>
			
			
			<div class="row submit">
				<?php echo CHtml::submitButton(UserModule::t('Save')); ?>
			</div>
		
		<?php echo CHtml::endForm(); ?>
	</div>
<?php } ?>
